package com.ovstech.commons.web.exception;

import lombok.Data;

@Data
public class RESTException extends RuntimeException {

    private String code;

    private String requestUri;

    public RESTException(String message, String code, String requestUri) {
        super(message);
        this.code = code;
        this.requestUri = requestUri;
    }

    public RESTException(String message, Throwable cause, String code, String message1, String requestUri) {
        super(message, cause);
        this.code = code;
        this.requestUri = requestUri;
    }

    public RESTException(Throwable cause, String code, String message, String requestUri) {
        super(cause);
        this.code = code;
        this.requestUri = requestUri;
    }

    public RESTException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String message1, String requestUri) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.requestUri = requestUri;
    }
}
